//
//  SecondAmountFooterView.m
//  DebugDemo
//
//  Created by XFB on 2018/11/28.
//  Copyright © 2018年 ZhouCheng. All rights reserved.
//

#import "SecondAmountFooterView.h"

@interface SecondAmountFooterView ()

@property (nonatomic, weak) UIView *bottomLineView;

@end

@implementation SecondAmountFooterView

+ (instancetype)secondAmountFooterViewWithTableView:(UITableView *)tableView
{
    static NSString *footID = @"SecondAmountFooterView";
    SecondAmountFooterView *footerView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:footID];
    if (footerView == nil) {
        footerView = [[self alloc] initWithReuseIdentifier:footID];
    }
    return footerView;
}

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        [self setupUI];
    }
    return self;
}
- (void)setupUI
{
    self.contentView.backgroundColor = RGB(250, 250, 250);

    UIView *bottomLineView = [[UIView alloc] init];
    bottomLineView.backgroundColor = UIColorFromRGB(0x999999);
    [self.contentView addSubview:bottomLineView];
    self.bottomLineView = bottomLineView;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.bottomLineView.frame = CGRectMake(20, 9.5, ScreenW-20, 0.5);
}

@end
